//
//  NSArray+protect.m
//  news_ios_app
//
//  Created by apple on 16/3/19.
//  Copyright © 2016年 apple. All rights reserved.
//

#import "NSArray+protect.h"

@implementation NSArray (protect)

- (instancetype)objectForIndex:(NSUInteger)index
{
    if (index >= [self count]) {
        return nil;
    }
    
    return [self objectAtIndex:index];
}

@end
